package com.tuzhi.util;

public class ThreadLocalContextHolder {
    private static final ThreadLocal<String> USER_INFO = new ThreadLocal<>();

    public static void setUserInfo(String loginUser) {
        USER_INFO.set(loginUser);
    }

    public static String getUserInfo() {
        return USER_INFO.get();
    }

    public static void clear() {
        USER_INFO.remove();
    }
}
